package com.nc.delivery_project.client.request;

import java.util.List;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;
import com.nc.delivery_project.server.service.OrderWaypointService;
import com.nc.delivery_project.shared.proxy.OrderWaypointProxy;
import com.nc.delivery_project.shared.servicelocator.OrderWaypointServiceLocator;



@Service(value = OrderWaypointService.class, locator = OrderWaypointServiceLocator.class)
public interface OrderWaypointRequest extends RequestContext{

    Request<Integer> create(OrderWaypointProxy orderWP);

    Request<List<OrderWaypointProxy>> read();

    Request<OrderWaypointProxy> read(int orderWPId);

    Request<List<OrderWaypointProxy>> readByOrderId(int orderId);

    Request<List<OrderWaypointProxy>> readByDepartmentId(int deptId);

    Request<Void> update(OrderWaypointProxy orderWP);

    Request<Void> delete(int orderWPId);
}
